import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';

class RoutePage1 extends StatefulWidget {
  const RoutePage1({Key? key}) : super(key: key);

  @override
  State<RoutePage1> createState() => _RoutePage1State();
}

class _RoutePage1State extends State<RoutePage1> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Container(
        color: Colors.red,
        alignment: Alignment.center,
        child: GestureDetector(
          onTap: (){
            Modular.to.pushNamed('/route_page2?id=1',);
          },
          child: Container(
            width: 100,
            height: 100,
            color: Colors.white,
          ),
        ),
      ),);
  }
}
